import { request } from '@ruifox-cms/utils'

// 获取用户编写的媒体资源中心的文章，分页
export function selectResourceData(params) {
    return request({
        baseURL: process.env.NODE_ENV == 'development' ? '/recruitment_api' : '/api',
        url: '/recruitment/notice/selectResourceData',
        method: 'post',
        data: params
    })
}
// 获取内容列表
export function selectPage(data) {
    return request({
        baseURL: process.env.NODE_ENV == 'development' ? '/recruitment_api' : '/api',
        url: '/recruitment/notice/selectPage',
        method: 'post',
        data
    })
}
// 引用文章
export function quoteResourceData(data) {
    return request({
        baseURL: process.env.NODE_ENV == 'development' ? '/recruitment_api' : '/api',
        url: '/recruitment/notice/quoteResourceData',
        method: 'post',
        data
    })
}
// 获取内容状态分类统计
export function selectStatesNum(params) {
    return request({
        baseURL: process.env.NODE_ENV == 'development' ? '/recruitment_api' : '/api',
        url: '/recruitment/notice/selectStatesNum',
        method: 'get',
        params
    })
}
// 一键排序
export function resetSort(data) {
    return request({
        baseURL: process.env.NODE_ENV == 'development' ? '/recruitment_api' : '/api',
        url: '/recruitment/notice/resetSort',
        method: 'post',
        data
    })
}
// 修改公告的撤稿状态
export function updateWithdrawState(data) {
    return request({
        baseURL: process.env.NODE_ENV == 'development' ? '/recruitment_api' : '/api',
        url: '/recruitment/notice/updateWithdrawState',
        method: 'post',
        data
    })
}